#include "Components/ComponentAntiCheat.h"
#include "Components/ComponentBody.h"
#include "Components/ComponentPlayer.h"
#include "Components/ComponentCreature.h"
#include "Components/ComponentClothing.h"
#include "Components/ComponentHealth.h"
#include "Components/ComponentMiner.h"

#include "Player/PlayerData.h"
#include "Network/PackageManager.h"
#include "Network/Packages/ComponentHealthPackage.h"
#include "Subsystems/SubsystemTimeOfDay.h"

#include "GameRandom.hpp"
#include "GameSingleton.h"
#include "GameRegistry.hpp"
#include "Log.h"

using namespace PocketSurvival::Engine;

namespace PocketSurvival
{

    static const std::string componentName = "AntiCheat";
    const std::string &ComponentAntiCheat::getName() const
    {
        return componentName;
    }
    const std::string &ComponentAntiCheat::GetName()
    {
        return componentName;
    }
    void ComponentAntiCheat::load(const nlohmann::json &jsonData)
    {
        // ComponentPlayer *componentPlayer = GameSingleton::gameRegistry->get<ComponentPlayer*>(entity);
        // lastVelocity = componentPlayer->componentBody->velocity;
        // allowAnomaliesTime = 5.0f;
    }

    void ComponentAntiCheat::save(nlohmann::json &jsonData) {}

    void ComponentAntiCheat::saveToMsgJson(nlohmann::json &jsonData) {}

} // namespace PocketSurvival
